# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.FirebaseHosting.V1beta1.Model.CloneVersionRequest do
  @moduledoc """


  ## Attributes

  *   `exclude` (*type:* `GoogleApi.FirebaseHosting.V1beta1.Model.PathFilter.t`, *default:* `nil`) - If provided, only paths that do not match any of the RegEx values in this list will be included in the new version.
  *   `finalize` (*type:* `boolean()`, *default:* `nil`) - If true, the call to `CloneVersion` immediately finalizes the version after cloning is complete. If false, the cloned version will have a status of `CREATED`. Use [`UpdateVersion`](patch) to set the status of the version to `FINALIZED`.
  *   `include` (*type:* `GoogleApi.FirebaseHosting.V1beta1.Model.PathFilter.t`, *default:* `nil`) - If provided, only paths that match one or more RegEx values in this list will be included in the new version.
  *   `sourceVersion` (*type:* `String.t`, *default:* `nil`) - Required. The unique identifier for the version to be cloned, in the format: sites/SITE_ID/versions/VERSION_ID
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :exclude => GoogleApi.FirebaseHosting.V1beta1.Model.PathFilter.t() | nil,
          :finalize => boolean() | nil,
          :include => GoogleApi.FirebaseHosting.V1beta1.Model.PathFilter.t() | nil,
          :sourceVersion => String.t() | nil
        }

  field(:exclude, as: GoogleApi.FirebaseHosting.V1beta1.Model.PathFilter)
  field(:finalize)
  field(:include, as: GoogleApi.FirebaseHosting.V1beta1.Model.PathFilter)
  field(:sourceVersion)
end

defimpl Poison.Decoder, for: GoogleApi.FirebaseHosting.V1beta1.Model.CloneVersionRequest do
  def decode(value, options) do
    GoogleApi.FirebaseHosting.V1beta1.Model.CloneVersionRequest.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.FirebaseHosting.V1beta1.Model.CloneVersionRequest do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
